package com.szrt.java.day20170113.demo01;

public class Teacher {

	private String name;
	
	private double salary;

	public Teacher() {
		
	}
	public Teacher(String name, double salary) {
		this.name = name;
		this.salary = salary;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	
	public void sing(){
		System.out.println("老师唱山歌..");
	}
	
	@Override
	public String toString() {
		return "Teacher [name=" + name + ", salary=" + salary + "]";
	}
	
}
